home *** CD-ROM | disk | FTP | other *** search
- property tix, tixV, zP, mmV, horseSprite, randomDelayCounter, Counter
- global gmObject
-
- on beginSprite me
- Counter = gmObject.backCounter
- randomDelayCounter = 0
- horseSprite = gmObject.horseSprites[1]
- tixV = 8
- tix = the ticks + tixV
- end
-
- on exitFrame me
- if (gmObject.speed > 0) and (gmObject.dontTrig < 2) then
- Counter = Counter + 1
- if Counter > 30 then
- randomDelayCounter = randomDelayCounter + 1
- if randomDelayCounter > (3 - gmObject.overAllSpeed) then
- randomDelayCounter = 0
- gmObject.trigThings()
- end if
- end if
- end if
- go(the frame)
- end
-
- on idle
- if the keyDownScript = EMPTY then
- zP = horseSprite.locH
- if the ticks > tix then
- mmV = (the mouseH - zP) / 15
- gmObject.mouseHX(mmV)
- tix = the ticks + tixV
- end if
- end if
- end
-
- on mouseDown me
- if (the mouseV > 71) and (the mouseV < 516) then
- if the keyDownScript = EMPTY then
- gmObject.jump()
- else
- set the keyDownScript to EMPTY
- gmObject.jump()
- end if
- end if
- end
-